package com.pansky.crm.mapper.mysql;

import com.pansky.crm.common.mybatisplus.SuperMapper;
import com.pansky.crm.entity.Employee;
import com.pansky.crm.entity.vo.EmployeeInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：zhouzhiyong
 * @date ：Created in 2021/2/22 9:16
 * @description：员工mapper
 */
@Mapper
public interface EmployeeMapper extends SuperMapper<Employee> {

    List<EmployeeInfo> queryEmployeeInfo(Employee employee);

    boolean updateBatchRoleId(@Param("employeeIdList") List<Integer> employeeIdList, @Param("roleId") Integer roleId);

    void batchUpdateStatus(@Param("employeeIds") List<Integer> employeeIds, @Param("status") Integer status);
}
